package com.study.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class TestController {

    @GetMapping("test/test")
    public String test(String username, HttpServletRequest request){

        request.getSession().setAttribute("username",username);

        return "Login ok";

    }



}
